package dd.server;

import server.ClientState;
import server.IProtocolHandler;
import xml.Message;
import dd.model.serverModel;

public class turnResponseController implements IProtocolHandler {

	int who;

	public turnResponseController(int who) {
		this.who = who;
	}

	@Override
	public Message process(ClientState state, Message request) {

		serverModel sm = serverModel.getInstance();
		String idr = sm.getuserid(who);
		String xmlString = Message.responseHeader(idr) + "<turnResponse completed='false'></turnResponse></response>";
		Message m = new Message(xmlString);
		// System.out.println(idr+"..");
		// System.out.println(request.id());
		// Server.getState(request.id()).sendMessage(m);
		return m;

	}
}
